const arr = [1, 2, {name: 'zs'}];
const newArr = arr.slice();
newArr[2].name = 'ls';
console.log(newArr);
let a = [1,5,7]
let b = [...a]
a[0] = 90
console.log(b,'---')
console.log(arr)